package com.autcar.training.service;

import com.autcar.training.entity.Goods;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ProjectName: training
 * @Package: com.autcar.training.service
 * @ClassName: GoodsService
 * @Author: YHHHH
 * @Description:
 * @Date: 2020/8/28 23:15
 * @Version: 1.0
 */
@Service
public interface GoodsService  {

    //查询所有商品
    List<Goods> findAllGoods();

    //查询所有商品
    int addGoods(Goods goods);

    //删除一个商品
    int deleteGoods(Integer id);

    //更新商品
    int updateGoods(Goods goods);

    //根据商品名字模糊查询商品
    List<Goods> findByName(String name);

    //价格区间查询
    List<Goods> findByPrice(Integer low,Integer high);
}
